package org.yo.router

import android.content.Intent
import android.content.pm.PackageManager
import android.os.Bundle
import android.view.View
import android.widget.Toast
import androidx.appcompat.app.AppCompatActivity

class MainActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)
        findViewById<View>(R.id.helloWorld).setOnClickListener {

//            val appClassSet = YoApplicationManager.appClassSet
//
//            for (s in appClassSet) {
//                showToast(s!!)
//            }

            it.postDelayed({
                startActivity(Intent(this, MainActivity2::class.java))
            }, 5000)
        }


    }


    private fun showToast(message: String) {
        Toast.makeText(this, message, Toast.LENGTH_SHORT).show()
    }
}